<template>
 <a-input placeholder="请输入文章分类" v-model="value" @input='handleInp'/>
</template>

<script>
import debounce from "lodash/debounce";
export default {
  name: "Mention",
  data() {
    return {
        value: ''
    };
  },
  methods: {
      handleInp() {
          this.$bus.$emit('tag', this.value);
      } ,
  },
  created() {
    this.$bus.$on('getTag', tag => {
      this.value = tag;
      this.$bus.$emit('tag', tag); // 触发让文章发送时获得到值
    })
  }

};
</script>
<style>